package cn.edu.scau.cmi.yangqing.composite_consistency;



public class UnitedNations extends Composite {
	private Composite countryList;
	private String greet="UnitedNations:"+"\n";
	private WorldOrganization wChina;
	private WorldOrganization wUSA;
	private WorldOrganization wEngland;
	
	
	public UnitedNations() {
		countryList = new Composite();
		wChina =new China();
		wUSA = new USA();
		wEngland = new England();
	
		countryList.add(wChina);
		countryList.add(wUSA);
		countryList.add(wEngland);
	}
	public String say() {
		return greet+countryList.say();
	}
}
